using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor.Experimental.SceneManagement;
using UnityEditor.IMGUI.Controls;
using UnityEditor.SceneManagement;
using UnityEditorInternal;
using UnityEngine.AI;
using UnityEngine;

namespace UnityEditor.AI
{
    [CustomEditor(typeof(NavMeshDataExporter))]
    public class NavMeshDataExporterEditor : Editor
    {
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();
            
            
            NavMeshDataExporter myScript = (NavMeshDataExporter)target;
            EditorGUILayout.HelpBox("导出服务器所需的obj文件", MessageType.Info);
            if(GUILayout.Button("导出"))
            {
                myScript.Export();
            }
        }
    }
}